package com.javaeedev.remote;

import java.rmi.Naming;
import java.rmi.registry.LocateRegistry;

import com.javaeedev.junit.RemoteAuthService;

public class Main {

    public static void main(String[] args) throws Exception {
        LocateRegistry.createRegistry(1099);
        Naming.bind("//localhost:1099/AuthService", new RemoteAuthService());
        System.out.println("rmi started at //localhost:1099/AuthService.");
    }

}
